package HttpUtils;

import android.content.Context;

import http.HttpBodyBase;

/**
 * Created by Administrator on 2016/3/8.
 */
public class HttpHistoryRequest extends HttpBodyBase {
    public HttpHistoryRequest(Context context, int type) {
        super(context);
        switch (type){
            case 0:
                setAction("/index.php/Home/Order/order_list");
                break;
            case 1:
                //详情
                setAction("/index.php/Home/Order/get_order_detail");
                break;
        }
    }
    public void setPageNum(int pageNum){
        params.put("pageNum",pageNum);
        params.put("pageSize",20);
    }
    public void getOrderDetailById(String order_no){
        params.put("order_no",order_no);
    }
}
